package com.gxa.service.impl;

import com.gxa.mapper.BookInfoMapper;
import com.gxa.service.BookInfoService;
import com.gxa.vo.BookInfoVo;
import com.gxa.vo.SelectFactorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookInfoService {

    @Autowired
    private BookInfoMapper bookInfoMapper;

    @Override
    public List<BookInfoVo> queryAll() {
        List<BookInfoVo> bookInfoVos = this.bookInfoMapper.queryAll();
        return bookInfoVos;
    }

    @Override
    public List<String> selectDepart() {
        List<String> list = this.bookInfoMapper.selectDepart();
        return list;
    }

    @Override
    public List<BookInfoVo> selectFactor(SelectFactorVo selectFactorVo){
        List<BookInfoVo> bookInfoVos = this.bookInfoMapper.selectFactor(selectFactorVo);
        return bookInfoVos;
    }
}
